package com.chengqj.factory.singlefactory;

import java.io.Serializable;

/**
 * @program: pattern
 * @description: 序列化方式
 * @author: chengqj
 * @create: 2018-08-06 19:12
 **/
public class Seriable implements Serializable {
    public  final static Seriable INSTANCE = new Seriable();
    private Seriable(){}

    public static  Seriable getInstance(){
        return INSTANCE;
    }
    //确保式同一个对象
    private  Object readResolve(){
        return  INSTANCE;
    }
}
